﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Models
{
    public class Result
    {
        public Result(bool IsNullOrEmpty = false)
        {
            Status = IsNullOrEmpty ? 1 : 0;
            Success = IsNullOrEmpty;
            ReturnMessage = IsNullOrEmpty ? "SUCCESS" : "ERROR";
        }
        public int Status { get; set; }
        public string Obj { get; set; }
        public bool Success { get; set; }
        public string ReturnMessage { get; set; }
        public dynamic ReturnData { get; set; }
    }
}
